importClass(Packages.org.framework2.utils.XMLReader);
importClass(Packages.org.framework2.utils.HttpClientUtil);
importClass(Packages.org.framework2.utils.DBTools);

var xmlData = request.getParameter('xmlData');
//print('请求的参数:' + xmlData);
var xmlReader = new XMLReader(xmlData);
var procID = xmlReader.getNodeText('InnerBus.ProcID');
//print('InnerBus.ProcID:' + procID);
var ret = '<?xml version="1.0" encoding="UTF-8"?>';
ret += '<TestCase>';
ret += '<ProcID>' + procID + '</ProcID>';
ret += '<Code>000000</Code>';
ret += '<Desc>[Test平台]操作成功!</Desc>';
ret += '</TestCase>';
response.write(ret);

var logs = dbTools.select('select * from t_framework2_http_log limit 1,10');
println(logs);

var map = new java.util.HashMap();
map.put('xmlData',ret);
HttpClientUtil.post('http://localhost:8888/testCase/testcase2.do', 5000, map);
